package cate.game.train.inscription.msg;

import cate.common.annotation.OperationSetter;
import cate.common.table.d.GDOperation;
import cate.game.GameBody;
import cate.game.client.ClientContext;
import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgInput;
import cate.game.client.msg.id.MsgIdBTrain;
import cate.game.res.MixRes;
import easy.java.dev.note.NoteField;

import java.util.Set;

@ClientMsg(title = "铭文升级 的 请求")
@OperationSetter(GDOperation.INSCRIPTION_LEVEL_UP)
public class InscriptionLevelUpReq implements MsgInput {

    @NoteField(value = "铭文id", detail = "必传")
    public String insriptionUid;

    @Override
    public void execute(GameBody game, ClientContext cc) {
        game.train.inscription.levelUp(cc.getRole(), insriptionUid);
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBTrain.INSCRIPTION_LEVEL_UP_REQ;
    }
}
